import { resData_Inf } from "@/store/router/index.type";
import FactoryManageRouter_Constants from "../router-factoryManage";

/*
 * @Descripttion:模具模块菜单路由
 * @LastEditors: xzh
 * @LastEditTime: 2023-11-12 23:09:55
 */
export default class MoldManageRouter_Constants extends FactoryManageRouter_Constants {
  /**
   * @Author: xzh
   * @Descripttion:模具基础资料
   * @Param:
   */
  static moldBaseInfo: Array<resData_Inf> = [
    {
      guid: "guid_moldBaseInfo",
      parentGuid: "guid_moldManage",
      liDataName: "moldBaseInfo",
      //t("page.moldManageArr.moldBaseInfo")
      liName: "page.moldManageArr.moldBaseInfo",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_moldType",
      parentGuid: "guid_moldBaseInfo",
      liDataName: "moldType",
      //t("page.moldManageArr.moldType")
      liName: "page.moldManageArr.moldType",
      liHref: "moldManage/moldBaseInfo/moldType/index",
    },
    {
      guid: "guid_moldState",
      parentGuid: "guid_moldBaseInfo",
      liDataName: "moldState",
      //t("page.moldManageArr.moldState")
      liName: "page.moldManageArr.moldState",
      liHref: "moldManage/moldBaseInfo/moldState/index",
    },
    {
      guid: "guid_moldArchives",
      parentGuid: "guid_moldBaseInfo",
      liDataName: "moldArchives",
      //t("page.moldManageArr.moldArchives")
      liName: "page.moldManageArr.moldArchives",
      liHref: "moldManage/moldBaseInfo/moldArchives/index",
    },
    {
      guid: "guid_moldStatArchives",
      parentGuid: "guid_moldBaseInfo",
      liDataName: "moldStatArchives",
      //t("page.moldManageArr.moldStatArchives")
      liName: "page.moldManageArr.moldStatArchives",
      liHref: "empty/index",
    },
    {
      guid: "guid_moldAbnormal",
      parentGuid: "guid_moldBaseInfo",
      liDataName: "moldAbnormal",
      //t("page.abnormalManageArr.moldAbnormal")
      liName: "page.abnormalManageArr.moldAbnormal",
      liHref: "abnormalManage/moldAbnormal/index",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion: 模具维修
   * @Param:
   */
  static moldRepair: Array<resData_Inf> = [
    {
      guid: "guid_moldRepair",
      parentGuid: "guid_moldManage",
      liDataName: "moldRepair",
      //t("page.moldRepair")
      liName: "page.moldRepair",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_moldFaultType",
      parentGuid: "guid_moldRepair",
      liDataName: "moldFaultType",
      //t("page.moldRepairArr.moldFaultType")
      liName: "page.moldRepairArr.moldFaultType",
      liHref: "moldManage/moldRepair/faultType/index",
    },
    {
      guid: "guid_moldFaultRepair",
      parentGuid: "guid_moldRepair",
      liDataName: "moldFaultRepair",
      //t("page.moldRepairArr.moldFaultRepair")
      liName: "page.moldRepairArr.moldFaultRepair",
      liHref: "moldManage/moldRepair/faultRepair/index",
    },
    {
      guid: "guid_moldRepairRecord",
      parentGuid: "guid_moldRepair",
      liDataName: "moldRepairRecord",
      //t("page.moldRepairArr.moldRepairRecord")
      liName: "page.moldRepairArr.moldRepairRecord",
      liHref: "moldManage/moldRepair/repairRecord/index",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion: 模具保养
   * @Param:
   */
  static moldUpkeep: Array<resData_Inf> = [
    {
      guid: "guid_moldUpkeep",
      parentGuid: "guid_moldManage",
      liDataName: "moldUpkeep",
      //t("page.moldUpkeep")
      liName: "page.moldUpkeep",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_moldUpkeepPlan",
      parentGuid: "guid_moldUpkeep",
      liDataName: "moldUpkeepPlan",
      //t("page.moldUpkeepArr.upkeepPlan")
      liName: "page.moldUpkeepArr.upkeepPlan",
      liHref: "moldManage/moldUpkeep/upkeepPlan/index",
    },
    {
      guid: "guid_moldUpkeepRecord",
      parentGuid: "guid_moldUpkeep",
      liDataName: "moldUpkeepRecord",
      //t("page.moldUpkeepArr.upkeepRecord")
      liName: "page.moldUpkeepArr.upkeepRecord",
      liHref: "moldManage/moldUpkeep/upkeepRecord/index",
    },
    {
      guid: "guid_moldUpkeepItem",
      parentGuid: "guid_moldUpkeep",
      liDataName: "moldUpkeepItem",
      //t("page.moldUpkeepArr.upkeepItem")
      liName: "page.moldUpkeepArr.upkeepItem",
      liHref: "moldManage/moldUpkeep/upkeepItem/index",
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 模具备件
   * @Param:
   */
  static moldSpare: Array<resData_Inf> = [
    {
      guid: "guid_moldSpare",
      parentGuid: "guid_moldManage",
      liDataName: "moldSpare",
      //t("page.moldSpareArr.moldSpare")
      liName: "page.moldSpareArr.moldSpare",
      liIcon: "menu",
      isChild: true,
    },
    {
      guid: "guid_moldSpareType",
      parentGuid: "guid_moldSpare",
      liDataName: "moldSpareType",
      //t("page.moldSpareArr.spareType")
      liName: "page.moldSpareArr.spareType",
      liHref: "moldManage/moldSpare/spareType/index",
    },
    {
      guid: "guid_moldSpareLedger",
      parentGuid: "guid_moldSpare",
      liDataName: "moldSpareLedger",
      //t("page.moldSpareArr.spareLedger")
      liName: "page.moldSpareArr.spareLedger",
      liHref: "moldManage/moldSpare/spareLedger/index",
    },
    {
      guid: "guid_moldInBoundManage",
      parentGuid: "guid_moldSpare",
      liDataName: "moldInBoundManage",
      //t("page.moldSpareArr.inBoundManage")
      liName: "page.moldSpareArr.inBoundManage",
      liHref: "moldManage/moldSpare/inBoundManage/index",
    },
    {
      guid: "guid_moldOutBoundManage",
      parentGuid: "guid_moldSpare",
      liDataName: "moldOutBoundManage",
      //t("page.moldSpareArr.outBoundManage")
      liName: "page.moldSpareArr.outBoundManage",
      liHref: "moldManage/moldSpare/outBoundManage/index",
    },
  ];

  /**
   * @Author: xzh
   * @Descripttion:模具管理
   * @Param:
   */
  static moldManage: Array<resData_Inf> = [
    //模具基础资料
    ...this.moldBaseInfo,
    // 模具备件
    ...this.moldSpare,
    // 模具维修
    ...this.moldRepair,
    // 模具保养
    ...this.moldUpkeep,
  ];
}
